package com.heqiang.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@Slf4j
public class AdminController {

    /****************************************************** Query *****************************************************/
    /**
     * 落樱缤纷
     * @return
     */
    @RequestMapping(value = {"/","/index","/sakura"})
    public ModelAndView goIndex() {
        log.info("==============落樱缤纷迎面来==============");
        return new ModelAndView("sakura");
    }


    /**
     * 贪吃蛇
     * @return
     */
    @RequestMapping(value = {"/snake"})
    public ModelAndView goSnake() {
        log.info("==============贪吃蛇的新玩法==============");
        return new ModelAndView("snake");
    }


    /**
     *
     * @return
     */
    @RequestMapping(value = {"/meteor"})
    public ModelAndView playSnake() {
        log.info("==============一起来看流星雨==============");
        return new ModelAndView("meteor");
    }
}
